// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false

// 在 main.js 中文件中, 引入 font 的 css 样式
import './assets/fonts/iconfont.css'

//引入axios
import axios from 'axios'

//配置axios的全局基本路径
axios.defaults.baseURL='http://localhost:8080/'

//全局属性配置，在任意组件内可以使用this.$http获取axios对象
Vue.prototype.$http = axios



/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
